package com.flow.engine.entity;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author ly163
 */
@Data
@Builder
@Accessors(chain = true)
public class FlowFatherChildNode implements Cloneable {
    private Long flowId;
    private Long parentId;
    private Long nextId;
    private Long currentId;
    private String type;

    @Override
    public FlowFatherChildNode clone() {
        try {
            return (FlowFatherChildNode) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
